# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-jsonschema-gns3
_pkgname=jsonschema
pkgver=3.2.0
pkgrel=0
pkgdesc="An implementation of JSON Schema validation for Python - GNS3 compatible version"
url="https://github.com/Julian/jsonschema"
arch="noarch"
license="MIT"
depends="py3-pyrsistent py3-attrs !py3-jsonschema"
makedepends="python3-dev py3-setuptools"
options="!check" # py3-twisted missing
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="acbb4cec730a8cdab9f070593ed896064fbe082d464ec362adc952e4985e9eaa12ad0f2d55a04018ffdaf675e54037999a7219533dad6b84bf609f5dfe21bbab  jsonschema-3.2.0.tar.gz"
